package xa.woniu.entity;

import java.util.ArrayList;
import java.util.List;

public class DoctorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public DoctorExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDidIsNull() {
            addCriterion("did is null");
            return (Criteria) this;
        }

        public Criteria andDidIsNotNull() {
            addCriterion("did is not null");
            return (Criteria) this;
        }

        public Criteria andDidEqualTo(Integer value) {
            addCriterion("did =", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotEqualTo(Integer value) {
            addCriterion("did <>", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThan(Integer value) {
            addCriterion("did >", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThanOrEqualTo(Integer value) {
            addCriterion("did >=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThan(Integer value) {
            addCriterion("did <", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThanOrEqualTo(Integer value) {
            addCriterion("did <=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidIn(List<Integer> values) {
            addCriterion("did in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotIn(List<Integer> values) {
            addCriterion("did not in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidBetween(Integer value1, Integer value2) {
            addCriterion("did between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotBetween(Integer value1, Integer value2) {
            addCriterion("did not between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDnameIsNull() {
            addCriterion("dname is null");
            return (Criteria) this;
        }

        public Criteria andDnameIsNotNull() {
            addCriterion("dname is not null");
            return (Criteria) this;
        }

        public Criteria andDnameEqualTo(String value) {
            addCriterion("dname =", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotEqualTo(String value) {
            addCriterion("dname <>", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameGreaterThan(String value) {
            addCriterion("dname >", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameGreaterThanOrEqualTo(String value) {
            addCriterion("dname >=", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameLessThan(String value) {
            addCriterion("dname <", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameLessThanOrEqualTo(String value) {
            addCriterion("dname <=", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameLike(String value) {
            addCriterion("dname like", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotLike(String value) {
            addCriterion("dname not like", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameIn(List<String> values) {
            addCriterion("dname in", values, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotIn(List<String> values) {
            addCriterion("dname not in", values, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameBetween(String value1, String value2) {
            addCriterion("dname between", value1, value2, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotBetween(String value1, String value2) {
            addCriterion("dname not between", value1, value2, "dname");
            return (Criteria) this;
        }

        public Criteria andDcidIsNull() {
            addCriterion("dcid is null");
            return (Criteria) this;
        }

        public Criteria andDcidIsNotNull() {
            addCriterion("dcid is not null");
            return (Criteria) this;
        }

        public Criteria andDcidEqualTo(Integer value) {
            addCriterion("dcid =", value, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidNotEqualTo(Integer value) {
            addCriterion("dcid <>", value, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidGreaterThan(Integer value) {
            addCriterion("dcid >", value, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidGreaterThanOrEqualTo(Integer value) {
            addCriterion("dcid >=", value, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidLessThan(Integer value) {
            addCriterion("dcid <", value, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidLessThanOrEqualTo(Integer value) {
            addCriterion("dcid <=", value, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidIn(List<Integer> values) {
            addCriterion("dcid in", values, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidNotIn(List<Integer> values) {
            addCriterion("dcid not in", values, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidBetween(Integer value1, Integer value2) {
            addCriterion("dcid between", value1, value2, "dcid");
            return (Criteria) this;
        }

        public Criteria andDcidNotBetween(Integer value1, Integer value2) {
            addCriterion("dcid not between", value1, value2, "dcid");
            return (Criteria) this;
        }

        public Criteria andDsexIsNull() {
            addCriterion("dsex is null");
            return (Criteria) this;
        }

        public Criteria andDsexIsNotNull() {
            addCriterion("dsex is not null");
            return (Criteria) this;
        }

        public Criteria andDsexEqualTo(String value) {
            addCriterion("dsex =", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexNotEqualTo(String value) {
            addCriterion("dsex <>", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexGreaterThan(String value) {
            addCriterion("dsex >", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexGreaterThanOrEqualTo(String value) {
            addCriterion("dsex >=", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexLessThan(String value) {
            addCriterion("dsex <", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexLessThanOrEqualTo(String value) {
            addCriterion("dsex <=", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexLike(String value) {
            addCriterion("dsex like", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexNotLike(String value) {
            addCriterion("dsex not like", value, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexIn(List<String> values) {
            addCriterion("dsex in", values, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexNotIn(List<String> values) {
            addCriterion("dsex not in", values, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexBetween(String value1, String value2) {
            addCriterion("dsex between", value1, value2, "dsex");
            return (Criteria) this;
        }

        public Criteria andDsexNotBetween(String value1, String value2) {
            addCriterion("dsex not between", value1, value2, "dsex");
            return (Criteria) this;
        }

        public Criteria andDtitleIsNull() {
            addCriterion("dtitle is null");
            return (Criteria) this;
        }

        public Criteria andDtitleIsNotNull() {
            addCriterion("dtitle is not null");
            return (Criteria) this;
        }

        public Criteria andDtitleEqualTo(String value) {
            addCriterion("dtitle =", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleNotEqualTo(String value) {
            addCriterion("dtitle <>", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleGreaterThan(String value) {
            addCriterion("dtitle >", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleGreaterThanOrEqualTo(String value) {
            addCriterion("dtitle >=", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleLessThan(String value) {
            addCriterion("dtitle <", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleLessThanOrEqualTo(String value) {
            addCriterion("dtitle <=", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleLike(String value) {
            addCriterion("dtitle like", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleNotLike(String value) {
            addCriterion("dtitle not like", value, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleIn(List<String> values) {
            addCriterion("dtitle in", values, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleNotIn(List<String> values) {
            addCriterion("dtitle not in", values, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleBetween(String value1, String value2) {
            addCriterion("dtitle between", value1, value2, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDtitleNotBetween(String value1, String value2) {
            addCriterion("dtitle not between", value1, value2, "dtitle");
            return (Criteria) this;
        }

        public Criteria andDdescIsNull() {
            addCriterion("ddesc is null");
            return (Criteria) this;
        }

        public Criteria andDdescIsNotNull() {
            addCriterion("ddesc is not null");
            return (Criteria) this;
        }

        public Criteria andDdescEqualTo(String value) {
            addCriterion("ddesc =", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescNotEqualTo(String value) {
            addCriterion("ddesc <>", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescGreaterThan(String value) {
            addCriterion("ddesc >", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescGreaterThanOrEqualTo(String value) {
            addCriterion("ddesc >=", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescLessThan(String value) {
            addCriterion("ddesc <", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescLessThanOrEqualTo(String value) {
            addCriterion("ddesc <=", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescLike(String value) {
            addCriterion("ddesc like", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescNotLike(String value) {
            addCriterion("ddesc not like", value, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescIn(List<String> values) {
            addCriterion("ddesc in", values, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescNotIn(List<String> values) {
            addCriterion("ddesc not in", values, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescBetween(String value1, String value2) {
            addCriterion("ddesc between", value1, value2, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDdescNotBetween(String value1, String value2) {
            addCriterion("ddesc not between", value1, value2, "ddesc");
            return (Criteria) this;
        }

        public Criteria andDphotoIsNull() {
            addCriterion("dphoto is null");
            return (Criteria) this;
        }

        public Criteria andDphotoIsNotNull() {
            addCriterion("dphoto is not null");
            return (Criteria) this;
        }

        public Criteria andDphotoEqualTo(String value) {
            addCriterion("dphoto =", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoNotEqualTo(String value) {
            addCriterion("dphoto <>", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoGreaterThan(String value) {
            addCriterion("dphoto >", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoGreaterThanOrEqualTo(String value) {
            addCriterion("dphoto >=", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoLessThan(String value) {
            addCriterion("dphoto <", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoLessThanOrEqualTo(String value) {
            addCriterion("dphoto <=", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoLike(String value) {
            addCriterion("dphoto like", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoNotLike(String value) {
            addCriterion("dphoto not like", value, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoIn(List<String> values) {
            addCriterion("dphoto in", values, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoNotIn(List<String> values) {
            addCriterion("dphoto not in", values, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoBetween(String value1, String value2) {
            addCriterion("dphoto between", value1, value2, "dphoto");
            return (Criteria) this;
        }

        public Criteria andDphotoNotBetween(String value1, String value2) {
            addCriterion("dphoto not between", value1, value2, "dphoto");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}